Package sudoku.Controlador

Source Code of sudoku.Controlador.ControladorSeleccionarVista

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package sudoku.Controlador;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import sudoku.Vista.SeleccionVista;

/**
*
* @author User
*/
public class ControladorSeleccionarVista implements ActionListener{
    private SudokuControlador sdkControlador;
    private SeleccionVista seleccionaVista;
   
    public ControladorSeleccionarVista(){
        seleccionaVista = new SeleccionVista();
        seleccionaVista.setController(this);
        seleccionaVista.setVisible(true);
    }
   
    public void actionPerformed(ActionEvent e) {
        String AccComando = e.getActionCommand();
       
        switch (AccComando){
            case "Vista 1":
                sdkControlador = new SudokuControlador(1);
               
                break;
            case "Vista 2":
                sdkControlador = new SudokuControlador(2);
                break;
               
        }
        seleccionaVista.dispose();
               
    }
   
}
TOP

Related Classes of sudoku.Controlador.ControladorSeleccionarVista

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.